<template>
    <div>
        Movie Manager Page <br>
        
        <button type="button" @click="save">Button</button>
        <a @click.prevent="logout">安全退出</a>

    </div>
</template>

<script>
export default {
   methods: {
       save() {
           this.$axios.post("http://localhost:8081/movie/save").then(response => {
               console.log(response);
           })
       },
       logout() {
           this.$router.push("/Login");
           localStorage.removeItem("token");
       }
   }
}
</script>

<style scoped>

</style>